package attend.action.vacation;

import org.apache.log4j.Logger;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

import attend.UserContainer.User;
import attend.com.Session;
import attend.dao.common.CommonDao;
import attend.dao.emp.EmpDao;
import attend.dao.vacation.VacationDao;
import dao.Paging.PagingDAO;
import exception.BaseException;

public class VacationAction extends Session {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(VacationAction.class);
	
	private	Map								session;
	
	private CommonDao						commonDao		= 	null;	//공통 DAO
	private VacationDao						vacationDao		=	null;	//휴가DAO
	private EmpDao		                    empDao          =   null;
	private VacationDao		                    vacaDao          =   null;
	
	
	private List<HashMap<String, String>>	listYear		=	null;	//근무년도 list
	private List<HashMap<String, String>>	listMonth		=	null;
	private List<HashMap<String, String>>	listVacation	=	null;	//휴가유형 list
	private List<HashMap<String, String>>	listGroup		=	null;	//그룹 list
	private List<HashMap<String, String>>	listTeam		=	null;	//팀 list
	private List<HashMap<String, String>>	listEmp			=	null;	//사원 list
	
	private List<HashMap<String, String>>	listAllocNum	=	null;	//휴가배정일수
	
	private List<String>					listCondition;				//조회 , 입력 , 수정 , 삭제 조건
	
	private List<HashMap<String, String>> 	list		=	null;
	
	private HashMap<String, String>			emp_info    =   null;      //사원정보
	private HashMap<String, String>			vaca_info    =   null;      
	
	private String							smonth		=	null;
	//체크된 값
	private String							s_chk		=	null;
	
	//휴가배정 condition
	private	String							syear 		=	null;
	private	String							svaca 		=	null;
	private	String							sgroup 		=	null;
	private	String							steam 		=	null;
	private	String							semp_no 	=	null;
	private String							emp_no;
	private String							tmp_emp_no;
	private String							assign_type;
	private String							vaca_type;
	private	String							rtn_msg;
	private	String							alloc_num;
	
	private String							standard_date;
	private String							alloc_date;
	private String							ch_emp_no;
	private String							add_alloc_num;
	private String							add_alloc_memo;
	
	private String							ch_seq_no;
	
	private String							free_vaca_day;
	private String							work_yn;

	private String 							emp_nm;

	private String 							group_no;

	private String 							group_nm;

	private String 							team_no;
	private String 							team_cd;
	private String 							team_nm;
	private String 							position_no;
	
	private int								authDeptCount;	//권한을 가지고 있는 갯수
	
	private List<List<HashMap<String, String>>> listVacationZ;	//휴가 전체조회 
	
	private ArrayList<HashMap<String, String>> listVacaAssignZ;	//휴가 배정팝업 리스트
	private float listVacaAssignZT;	//휴가 팝업 합계(배정)
	private float listVacaUseZT;	//휴가 팝업 합계(사용)
	private ArrayList<HashMap<String, String>> listVacaUseZ;	//휴가 사용팝업
	
	private ArrayList<HashMap<String, String>> listVacaAssignM;	//휴가 배정팝업 삭제기능 포함
	
	//20090728//조회월 추가
	private String monthly ;


	/**************************************************************************************/
	//pagingf
	
	private int start_row;		//시작로우
	private int end_row;		//앤드로우
	
	private int					rowCount				=	0;		//조회된 Row Count
	private int 				cur_page 				= 	1;		//Current Page Number
	
	/**************************************************************************************/
	
	private String empNm	=	"";	//성명조회
	public String getEmpNm() {		return empNm;	}
	public void setEmpNm(String empNm) {		this.empNm = empNm;	}

	public VacationAction() {}
	
	/* (non-Javadoc)
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 * <pre>
	 * 개인휴가 정보 조회
	 * </pre>
	 */
	public String execute() throws BaseException , SQLException {
		
		//세션을 얻는다.
		session	=	ActionContext.getContext().getSession();
		
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		//{approv_yn=Y, rank_nm=대리, rank_no=6006, emp_no=136, group_nm=솔루션1그룹, group_no=5000, position_no=7004, position_nm=팀원, user_id=episod30, emp_nm=양창환, team_nm=2팀, team_no=5020}
		//System.out.println(empInfo);
		
		//사번
		emp_no	=	empInfo.get("emp_no");
		//성명
		emp_nm	=	empInfo.get("emp_nm");
		//그룹코드
		group_no	=	empInfo.get("group_no");
		//그룹명
		group_nm	=	empInfo.get("group_nm");
		//팀코드
		team_no		=	empInfo.get("team_no");
		//팀명
		team_nm		=	empInfo.get("team_nm");
		
		position_no	=	empInfo.get("position_no");
		
		commonDao = new CommonDao();
		
		setStandard_date(commonDao.getDate(0));	//오늘날짜
		
		//조회년도 <s:select />
		commonDao.retrieveYearList();
		
		//setListYear(commonDao.getList());	//조회연도
		
		//휴가유형 <s:select />
		commonDao.retrieveVacationCode();
		listVacation = commonDao.getList();
		
		//setListMonth(commonDao.getList());	//조회월
		
		//권한 설정된 그룹
		commonDao.retrieveGroupListJoinAuthDept(Integer.valueOf(emp_no));
		
		setListGroup(commonDao.getList());
		
		authDeptCount = listGroup.size();
		
		logger.info(authDeptCount + "                     ---------->    authDeptCountauthDeptCountauthDeptCountauthDeptCount");
		
		//그룹이 0이면 세션정보로 저장한다.//부서 권한이 없는 경우
		if (authDeptCount == 0) {
			listGroup = null;
//			HashMap<String, String> dummy = new HashMap<String, String>();
//			dummy.put("group_no"	, 	group_no);
//			dummy.put("group_nm"	, 	group_nm);
//			listGroup.add(dummy);
		}
		
		return SUCCESS;
	}
	
	/**
	 * 개인휴가 리스트를 AJAX로 조회함.
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String ajax_myvacation_list() throws BaseException , SQLException {
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		
		if(steam == null){ steam = "ALL"; }
		if(semp_no == null){ semp_no = "ALL"; }
		
		//System.out.println("semp_no--------->		" + semp_no);
		//System.out.println("syear--------->			"+syear);
		//System.out.println("svaca--------->			"+ svaca);
		//System.out.println("sgroup-------->			"+sgroup);
		//System.out.println("steam--------->			"+steam);
		//System.out.println("empNm--------->			"+empNm);
		//System.out.println("standard_date--------->	"+standard_date);
		//System.out.println("free_vaca_day--------->	"+free_vaca_day);
		//System.out.println("work_yn		 --------->	"+work_yn);
		
		vacationDao = new VacationDao();
		
		listCondition = new ArrayList<String>();
		
		listCondition.add(0 , semp_no);	//사번//그룹과 팀은 하지않음 사번이 유니크함으로
		listCondition.add(1 , syear);	//근무연도
		listCondition.add(2 , svaca);	//휴가유형
		listCondition.add(3 , sgroup);	//
		listCondition.add(4 , steam);	//
		listCondition.add(5 , empNm);	//성명조회
		listCondition.add(6 , standard_date);	//기준일
		listCondition.add(7 , free_vaca_day);	//잔여휴가일수
		listCondition.add(8 , work_yn);			//재직여부
		
		//listCondition.add(5, monthly);	//20090728 - 조회월 추가
		
		//logger.info("#######################################################################################");
		//logger.info(monthly);
		//logger.info("#######################################################################################");
		
		rowCount		=	vacationDao.countMyVacation(listCondition, emp_no, authDeptCount);	//row count
		
		pDao 			= 			new PagingDAO(20 , 10 , rowCount , cur_page);				//페이징 처리 DAO
		
		start_row 		= 			pDao.getWriting_Start();				//시작 페이지 1
	    end_row   		= 			pDao.getWriting_End();					//끝페이지
		
		vacationDao.retrieveMyvacation(empInfo , listCondition , emp_no , authDeptCount , start_row , end_row);
		
		//list = vacationDao.getList();
		listVacationZ	=	vacationDao.getListVacation();
		
		return SUCCESS;
	}
	
	/**
	 * <pre>
	 * 휴가관리-휴가배정  Action
	 * </pre>
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String vacation_allocation_mgr() throws BaseException , SQLException {
		
		commonDao = new CommonDao();

		//조회년도 <s:select />
		//commonDao.retrieveYearList();
		//setListYear(commonDao.getList());	//조회연도
		
		setStandard_date(commonDao.getDate(0));	//오늘날짜
		
		//그룹조회<s:select />
		
		commonDao.retrieveGroupList();
		
		setListGroup(commonDao.getList());
		
		return SUCCESS;
	}
	
	/**
	 * <pre>
	 * 휴가배정 Pop_up
	 * </pre>
	 * @since 2009/01/22
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String vaca_alloc_p() throws BaseException , SQLException {
		

		empDao		=	new	EmpDao();	
		commonDao = new CommonDao();
		vacationDao = new VacationDao();
		
//		휴가유형 <s:select />
		int group_no = 102;
		commonDao.retrieveVacationCode(group_no);		//휴가유형 list 조회
		
		setListVacation(commonDao.getList());	//휴가유형 list
		setAlloc_date(commonDao.getDate(0));	//오늘날짜
		
		commonDao.allocNumList();
		setListAllocNum(commonDao.getAlloclist());
		
		//empDao.searchEmpInfo(emp_no);
		//emp_info	=	empDao.getEmp_info();
		
		//조건들을 list에 담아서 넘긴다.
		listCondition = new ArrayList<String>();
		
		int idx = 0;		//index 초기화

		listCondition.add(idx++ , alloc_date);		//배정기준일자
		
		//휴가 시작일 ~ 종료일 정보 가져오기
		vacationDao.searchVacaDate(listCondition, emp_no);
		vaca_info   =   vacationDao.getVaca_info();
		
		return SUCCESS;
	}
	

	/**
	 * 휴가 배정 조회정보를 
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String ajax_alloc_vacation_list() throws BaseException , SQLException {
		
//		조건들을 list에 담아서 넘긴다.
		listCondition = new ArrayList<String>();
		
		int idx = 0;		//index 초기화
		
		//System.out.println("standard_date--------->	"+standard_date);
		
		listCondition.add(idx++ , standard_date);	//휴가기준일
		listCondition.add(idx++ , sgroup);			//그룹
		
		//null값을 ALL로 변경해줌.
		//2009-01-31 오전 12:51:43
		if(steam != null){
			listCondition.add(idx++ , steam);		//팀
		}else{
			listCondition.add(idx++ , "ALL");		//
		}
		if(semp_no != null){
			listCondition.add(idx++ , semp_no);		//성명
		}else{
			listCondition.add(idx++ , "ALL");		//
		}
		
		//System.out.println("empNm : "+empNm);
		if(empNm != null){
			listCondition.add(idx++ , empNm);		//성명조회
		}else{
			listCondition.add(idx++ , "ALL");		//
		}
		
		vacationDao = new VacationDao();
		
		/**********************************************************************************/
		//paging
		
		//건수
		vacationDao.countRowAjaxList(listCondition);
		//total row count
		setRowCount(vacationDao.getRowCount());
		
		pDao 			= 			new PagingDAO(10 , 10 , rowCount , cur_page);				//페이징 처리 DAO
		
		start_row 		= 			pDao.getWriting_Start();				//시작 페이지 1
	    end_row   		= 			pDao.getWriting_End();					//끝페이지
	    
		/**********************************************************************************/
		
		//결과조회
		vacationDao.retrieveAjaxList(listCondition , start_row , end_row);
		setList(vacationDao.getList());
		
		return SUCCESS;
	}
	
	/**
	 * 휴가배정 INSERT
	 * 
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String insert_alloc_vacation() throws BaseException , SQLException {
		
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		//logger.info("empInfo--->		" + empInfo);
		//logger.info("ch_emp_no--->		" + ch_emp_no);
		//logger.info("alloc_date--->		" + alloc_date);
		//logger.info("svaca--->		" + svaca);
		//logger.info("add_alloc_num--->	" + add_alloc_num);
		//logger.info("add_alloc_memo--->	" + add_alloc_memo);
		
		//조건들을 list에 담아서 넘긴다.
		listCondition = new ArrayList<String>();
		
		int idx = 0;		//index 초기화
		
		listCondition.add(idx++ , ch_emp_no );		//체크된 값-사번--1,2,3,4
		listCondition.add(idx++ , alloc_date);		//배정기준일자
		listCondition.add(idx++ , svaca);			//휴가유형
		listCondition.add(idx++ , add_alloc_num);	//배당일수
		listCondition.add(idx++ , add_alloc_memo);	//배당사유
		
		vacationDao = new VacationDao();
		
		vacationDao.insertAllocVacation(listCondition, Integer.valueOf(empInfo.get("emp_no")));
		
		CommonDao	commonDao	=	new CommonDao();
		
		//휴가유형 <s:select />
		commonDao.retrieveVacationCode();
		listVacation = commonDao.getList();
		
		svaca = "";
		
		System.out.println("휴가배정 INSERT");
		
		rtn_msg = vacationDao.getRtn_msg();
		
		return SUCCESS;
	}
	
	/**
	 * 휴가삭제 DELETE
	 * 
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
//	public String delete_alloc_vacation_p() throws BaseException , SQLException {
//		
//		if (!session.containsKey("user")) {
//			return "login";
//		}
//		
//		user = (User) session.get("user");
//		
//		empInfo = user.getEmpInfo();
//		
//		logger.info("ch_seq_no--->	" + ch_seq_no);
//		
//		//조건들을 list에 담아서 넘긴다.
//		listCondition = new ArrayList<String>();
//		
//		int idx = 0;		//index 초기화
//		
//		listCondition.add(idx++ , ch_seq_no );		//체크된 값-SEQ--1,2,3,4
//		
//		vacationDao = new VacationDao();
//		
//		vacationDao.deleteAllocVacation_p(listCondition);
//		
//		System.out.println("휴가배정 DELETE");
//		
//		rtn_msg = vacationDao.getRtn_msg();
//		
//		return SUCCESS;
//	}
	

	
	/**
	 * <pre>
	 * 엑셀로 저장
	 * </pre>
	 * @return
	 * @throws BaseException
	 */
	public String vacationExcel() throws BaseException , SQLException {
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		
		if(steam == null){ steam = "ALL"; }
		if(semp_no == null){ semp_no = "ALL"; }
		
		//System.out.println("semp_no--------->		" + semp_no);
		//System.out.println("syear--------->			"+syear);
		//System.out.println("svaca--------->			"+ svaca);
		//System.out.println("sgroup-------->			"+sgroup);
		//System.out.println("steam--------->			"+steam);
		//System.out.println("empNm--------->			"+empNm);
		//System.out.println("standard_date--------->	"+standard_date);
		//System.out.println("free_vaca_day--------->	"+free_vaca_day);
		//System.out.println("work_yn		 --------->	"+work_yn);
		
		vacationDao = new VacationDao();
		
		listCondition = new ArrayList<String>();
		
		listCondition.add(0 , semp_no);	//사번//그룹과 팀은 하지않음 사번이 유니크함으로
		listCondition.add(1 , syear);	//근무연도
		listCondition.add(2 , svaca);	//휴가유형
		listCondition.add(3 , sgroup);	//
		listCondition.add(4 , steam);	//
		listCondition.add(5 , empNm);	//성명조회
		listCondition.add(6 , standard_date);	//기준일
		listCondition.add(7 , free_vaca_day);	//잔여휴가일수
		listCondition.add(8 , work_yn);			//재직여부
		
		//listCondition.add(5, monthly);	//20090728 - 조회월 추가
		
		//logger.info("#######################################################################################");
		//logger.info(monthly);
		//logger.info("#######################################################################################");
		
		rowCount		=	vacationDao.countMyVacation(listCondition, emp_no, authDeptCount);	//row count
		
		pDao 			= 			new PagingDAO(10 , 10 , rowCount , cur_page);				//페이징 처리 DAO
		
		start_row 		= 			1;										//시작 페이지 1
	    end_row   		= 			rowCount;								//끝페이지
		
		vacationDao.retrieveMyvacation(empInfo , listCondition , emp_no , authDeptCount , start_row , end_row);
		
		//list = vacationDao.getList();
		listVacationZ	=	vacationDao.getListVacation();
		
		return SUCCESS;
	}
	
	/**
	 * <pre>
	 * 휴가배정 Pop_up
	 * </pre>
	 * @since 2009/01/22
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String vaca_assign_p() throws BaseException , SQLException {
		
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		logger.info(empInfo);
		
		/*
		System.out.println("sgroup : "+sgroup);
		System.out.println("steam : "+steam);
		System.out.println("svaca : "+svaca);
		System.out.println("semp_no : "+semp_no);
		System.out.println("smonth : "+smonth);
		System.out.println("tmp_emp_no : "+tmp_emp_no);
		System.out.println("standard_date : "+standard_date);
		*/
		
		logger.info("#######################################################################################");
		logger.info("vaca_assign_p");
		logger.info("#######################################################################################");
		
		vacationDao = new VacationDao();
		
		vacationDao.listVacaAssign(tmp_emp_no, assign_type, standard_date.replace("-", ""));
		
		//휴가 배정 합계
		vacationDao.totalVacaAssign(tmp_emp_no, assign_type, standard_date.replace("-", ""));
		
		listVacaAssignZ	    =	vacationDao.getListVacaAssgin();
		listVacaAssignZT	=	vacationDao.getTot_alloc();
		System.out.println("vacationDao.getTot_alloc()>>>>>>>>>>>"+vacationDao.getTot_alloc());
		
		return SUCCESS;
	}
	
	
	/**
	 * <pre>
	 * 휴가사용 Pop_up
	 * </pre>
	 * @since 2009/01/22
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String vaca_list_p() throws BaseException , SQLException {
		
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		logger.info(empInfo);
		
		/*
		System.out.println("tmp_emp_no : "+tmp_emp_no);
		System.out.println("vaca_type : "+vaca_type);
		System.out.println("standard_date : "+standard_date);
		*/
		
		logger.info("#######################################################################################");
		logger.info("vaca_list_p");
		logger.info("#######################################################################################");
		
		vacationDao = new VacationDao();
		
		vacationDao.listVacaUse(tmp_emp_no, vaca_type, standard_date.replace("-", ""));
		vacationDao.totalVacaUse(tmp_emp_no, vaca_type, standard_date.replace("-", ""));
		
		listVacaUseZ	=	vacationDao.getListVacaUse();
		listVacaUseZT	=	vacationDao.getTot_use();
		
		return SUCCESS;
	}
	
	/**
	 * <pre>
	 * 휴가배정 Pop_up 삭제기능 포함
	 * </pre>
	 * @since 2009/01/22
	 * @return
	 * @throws BaseException
	 * @throws SQLException
	 */
	public String vaca_assign_mod_p() throws BaseException , SQLException {
		
		if (!session.containsKey("user")) {
			return "login";
		}
		
		user = (User) session.get("user");
		
		empInfo = user.getEmpInfo();
		
		logger.info(empInfo);
		
		/*
		System.out.println("sgroup : "+sgroup);
		System.out.println("steam : "+steam);
		System.out.println("svaca : "+svaca);
		System.out.println("semp_no : "+semp_no);
		System.out.println("smonth : "+smonth);
		*/
		System.out.println("tmp_emp_no : "+tmp_emp_no);
		System.out.println("standard_date : "+standard_date);
		
		
		logger.info("#######################################################################################");
		logger.info("vaca_assign_mod_p");
		logger.info("#######################################################################################");
		
		vacationDao = new VacationDao();
		
		vacationDao.listVacaAssignMod(tmp_emp_no, assign_type, standard_date.replace("-", ""));
		
		listVacaAssignM	=	vacationDao.getListVacaAssginM();
		
		return SUCCESS;
	}
	
	/************************** G E T T E R 	/ 	S E T T E R 	S T A R T *****************************/
	
	private void setList(List<HashMap<String, String>> list) {
		this.list	=	list;
		
	}


	public List<HashMap<String, String>> getListMonth() {
		return listMonth;
	}

	public void setListMonth(List<HashMap<String, String>> listMonth) {
		this.listMonth = listMonth;
	}

	public List<HashMap<String, String>> getListYear() {
		return listYear;
	}

	public void setListYear(List<HashMap<String, String>> listYear) {
		this.listYear = listYear;
	}
	
	public String getSmonth() {
		return smonth;
	}

	public void setSmonth(String smonth) {
		this.smonth = smonth;
	}

	public String getSyear() {
		return syear;
	}

	public void setSyear(String syear) {
		this.syear = syear;
	}

	public List<HashMap<String, String>> getListVacation() {
		return listVacation;
	}

	public void setListVacation(List<HashMap<String, String>> listVacation) {
		this.listVacation = listVacation;
	}

	public String getSvaca() {
		return svaca;
	}

	public void setSvaca(String svaca) {
		this.svaca = svaca;
	}

	public List<HashMap<String, String>> getListGroup() {
		return listGroup;
	}

	public void setListGroup(List<HashMap<String, String>> listGroup) {
		this.listGroup = listGroup;
	}

	public List<HashMap<String, String>> getListEmp() {
		return listEmp;
	}

	public void setListEmp(List<HashMap<String, String>> listEmp) {
		this.listEmp = listEmp;
	}

	public List<HashMap<String, String>> getListTeam() {
		return listTeam;
	}


	public String getSgroup() {
		return sgroup;
	}

	public void setSgroup(String sgroup) {
		this.sgroup = sgroup;
	}

	public String getsemp_no() {
		return semp_no;
	}

	public void setsemp_no(String semp_no) {
		this.semp_no = semp_no;
	}

	public String getSteam() {
		return steam;
	}

	public void setSteam(String steam) {
		this.steam = steam;
	}
	
	public void setListTeam(List<HashMap<String, String>> listTeam) {
		this.listTeam = listTeam;
	}
	
	public List<HashMap<String, String>> getList() {
		return list;
	}

	public String getS_chk() {
		return s_chk;
	}

	public void setS_chk(String s_chk) {
		this.s_chk = s_chk;
	}

	public String getRtn_msg() {
		return rtn_msg;
	}

	public void setRtn_msg(String rtn_msg) {
		this.rtn_msg = rtn_msg;
	}

	public List<String> getListCondition() {
		return listCondition;
	}

	public void setListCondition(List<String> listCondition) {
		this.listCondition = listCondition;
	}

	public String getEmp_no() {
		return emp_no;
	}

	public void setEmp_no(String emp_no) {
		this.emp_no = emp_no;
	}
	
	public String getAlloc_num() {
		return alloc_num;
	}

	public void setAlloc_num(String alloc_num) {
		this.alloc_num = alloc_num;
	}

	public String getSemp_no() {
		return semp_no;
	}

	public void setSemp_no(String semp_no) {
		this.semp_no = semp_no;
	}

	public String getEmp_nm() {
		return emp_nm;
	}

	public void setEmp_nm(String emp_nm) {
		this.emp_nm = emp_nm;
	}

	public String getGroup_no() {
		return group_no;
	}

	public void setGroup_no(String group_no) {
		this.group_no = group_no;
	}

	public String getGroup_nm() {
		return group_nm;
	}

	public void setGroup_nm(String group_nm) {
		this.group_nm = group_nm;
	}

	public String getTeam_no() {
		return team_no;
	}

	public void setTeam_no(String team_no) {
		this.team_no = team_no;
	}

	public String getTeam_nm() {
		return team_nm;
	}

	public void setTeam_nm(String team_nm) {
		this.team_nm = team_nm;
	}
	public int getRowCount() {
		return rowCount;
	}

	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}

	public int getCur_page() {
		return cur_page;
	}

	public void setCur_page(int cur_page) {
		this.cur_page = cur_page;
	}
	
	private PagingDAO						pDao;

	private User user;
	public PagingDAO getPDao() {
		return pDao;
	}

	public void setPDao(PagingDAO dao) {
		pDao = dao;
	}
	
	public Map getSession() {
		return session;
	}

	public void setSession(Map session) {
		this.session = session;
	}

	public String getTeam_cd() {
		return team_cd;
	}
	
	public void setTeam_cd(String team_cd) {
		this.team_cd = team_cd;
	}
	
	public String getPosition_no() {
		return position_no;
	}

	public void setPosition_no(String position_no) {
		this.position_no = position_no;
	}

	public int getAuthDeptCount() {
		return authDeptCount;
	}

	public void setAuthDeptCount(int authDeptCount) {
		this.authDeptCount = authDeptCount;
	}

	public List<List<HashMap<String, String>>> getListVacationZ() {
		return listVacationZ;
	}

	public void setListVacationZ(List<List<HashMap<String, String>>> listVacationZ) {
		this.listVacationZ = listVacationZ;
	}

	public String getMonthly() {
		return monthly;
	}

	public void setMonthly(String monthly) {
		this.monthly = monthly;
	}
	public String getTmp_emp_no() {
		return tmp_emp_no;
	}
	public void setTmp_emp_no(String tmpEmpNo) {
		tmp_emp_no = tmpEmpNo;
	}
	public ArrayList<HashMap<String, String>> getListVacaAssignZ() {
		return listVacaAssignZ;
	}
	public void setListVacaAssignZ(
			ArrayList<HashMap<String, String>> listVacaAssignZ) {
		this.listVacaAssignZ = listVacaAssignZ;
	}
	/*public ArrayList<HashMap<String, String>> getListVacaAssignZT() {
		return listVacaAssignZT;
	}
	public void setListVacaAssignZT(
			ArrayList<HashMap<String, String>> listVacaAssignZT) {
		this.listVacaAssignZT = listVacaAssignZT;
	}*/
	/*public int getListVacaAssignZT() {
		return listVacaAssignZT;
	}
	public void setListVacaAssignZT(String listVacaAssignZT) {
		listVacaAssignZT = listVacaAssignZT;
	}
	*/
	public float getListVacaAssignZT() {
		return listVacaAssignZT;
	}
	public void setListVacaAssignZT(float listVacaAssignZT) {
		this.listVacaAssignZT = listVacaAssignZT;
	}
	public float getListVacaUseZT() {
		return listVacaUseZT;
	}
	public void setListVacaUseZT(float listVacaUseZT) {
		this.listVacaUseZT = listVacaUseZT;
	}
	public ArrayList<HashMap<String, String>> getListVacaUseZ() {
		return listVacaUseZ;
	}
	public void setListVacaUseZ(ArrayList<HashMap<String, String>> listVacaUseZ) {
		this.listVacaUseZ = listVacaUseZ;
	}
	public String getStandard_date() {
		return standard_date;
	}
	public void setStandard_date(String standardDate) {
		standard_date = standardDate;
	}
	public String getAssign_type() {
		return assign_type;
	}
	public void setAssign_type(String assignType) {
		assign_type = assignType;
	}
	public String getVaca_type() {
		return vaca_type;
	}
	public void setVaca_type(String vacaType) {
		vaca_type = vacaType;
	}
	public String getAlloc_date() {
		return alloc_date;
	}
	public void setAlloc_date(String allocDate) {
		alloc_date = allocDate;
	}
	public String getCh_emp_no() {
		return ch_emp_no;
	}
	public void setCh_emp_no(String chEmpNo) {
		ch_emp_no = chEmpNo;
	}
	public String getAdd_alloc_num() {
		return add_alloc_num;
	}
	public void setAdd_alloc_num(String addAllocNum) {
		add_alloc_num = addAllocNum;
	}
	public String getAdd_alloc_memo() {
		return add_alloc_memo;
	}
	public void setAdd_alloc_memo(String addAllocMemo) {
		add_alloc_memo = addAllocMemo;
	}
	public ArrayList<HashMap<String, String>> getListVacaAssignM() {
		return listVacaAssignM;
	}
	public void setListVacaAssignM(
			ArrayList<HashMap<String, String>> listVacaAssignM) {
		this.listVacaAssignM = listVacaAssignM;
	}
	public String getCh_seq_no() {
		return ch_seq_no;
	}
	public void setCh_seq_no(String chSeqNo) {
		ch_seq_no = chSeqNo;
	}
	public String getFree_vaca_day() {
		return free_vaca_day;
	}
	public void setFree_vaca_day(String freeVacaDay) {
		free_vaca_day = freeVacaDay;
	}
	public String getWork_yn() {
		return work_yn;
	}
	public void setWork_yn(String workYn) {
		work_yn = workYn;
	}
	public List<HashMap<String, String>> getListAllocNum() {
		return listAllocNum;
	}
	public void setListAllocNum(List<HashMap<String, String>> listAllocNum) {
		this.listAllocNum = listAllocNum;
	}
	public HashMap<String, String> getEmp_info() {
		return emp_info;
	}
	public void setEmp_info(HashMap<String, String> emp_info) {
		this.emp_info = emp_info;
	}
	public HashMap<String, String> getVaca_info() {
		return vaca_info;
	}
	public void setVaca_info(HashMap<String, String> vaca_info) {
		this.vaca_info = vaca_info;
	}

	/************************** G E T T E R 	/ 	S E T T E R 	E   N   D *****************************/
}
